<?php
include_once "xAP-functions/webincludes.php";

$id=intval($_POST["id"]);
if($id>0){
	$var=serialize($_POST);

	$sql="update xAP_Widget_Location
	set ExtraData='".dbesc($var)."'
	where LocationID=".$id;
	dbexec($sql);
	echo "1";
}else{
	echo "0";
}
?>